
using UnityEngine;
using UnityEngine.UI;

public class SkeletonFirstLayerPanel : BasePanel
{
    //按钮
    public Button closeButton;
    public Button okButton;
    public override void OnClose()
    {
        base.OnClose();
        GameManager.Instance.canOprate=true;
    }
    public override void OnInit()
    {
        base.OnInit();

        path="UI/OtherTip/SkeletonFirstLayerPanel";
        type=PanelType.Tip;

        GameManager.Instance.canOprate=false;
    }
    public override void OnShow(params object[] par)
    {
        base.OnShow(par);

        closeButton=item.transform.Find("Close").GetComponent<Button>();
        okButton=item.transform.Find("Ok").GetComponent<Button>();

        closeButton.onClick.AddListener(CloseButton);
        okButton.onClick.AddListener(OkButton);
    }
    //关闭
    public void CloseButton()
    {
        Close();

        AudManager.instance.PlayUIAud(AudManager.instance.uiDic["点击"], 1f);
    }
    public void OkButton()
    {
        TipSayManager.Instance.Say("暂时无法进入<color=yellow> 万骨窟 </color>");

        CloseButton();
    }
}
